<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue中的数据类型的操作</title>
    <script src="js/vue.js"></script>
</head>

<body>
    <div id="app">
        <h3>数量{{num}}</h3>
        <h3>价格{{price.toFixed(2)}}</h3>
        <h3>小计{{(price * num).toFixed(2)}}</h3>
        
    </div>

</body>
<script>
    new Vue({
        el: "#app",
        data: {
           num:100,
           price:8

        }
    })



</script>

</html>